{include file="common/_header"}
{include file="common/_header1"}

<body class="layui-anim layui-anim-up">
<div class="x-nav">
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:left;background: #00a0e9" href="/orders/selectProducts" title="返回">
        <i class="layui-icon" style="line-height:30px">&#xe65c;</i>
    </a>
    <span class="layui-breadcrumb">
        <a>首页</a>
        <a>添加订单</a>
        <a>选择菜品</a>
        <a><cite>选择规格</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">&#xe669;</i>
    </a>
</div>
<div class="x-body">
    <table id="tables" class="layui-table">
        <thead>
        <tr>
            <th>规格名称</th>
            {if $data.is_show != true}
            <th>团餐详情</th>
            <th>团餐简述</th>
            {/if}
            <th>库存</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="data.stock" id="vo"}
        <tr class="table_tr">
            <td>{$vo.p_s_name}</td>
            {if $data.is_show != true}
            <td>{$vo.g_m_details|raw}</td>
            <?php //echo $vo['g_m_details']?>
            <td>{$vo.g_m_paper}</td>
            {/if}
            <td>{$vo.stock}</td>
            <td>
                <a title="选择" class="layui-btn" href="/orders/ManualadditionOrder?product_id={$vo.product_id}&p_s_id={$vo.p_s_id}">
                    选择
                </a>
            </td>

        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page_all">
        {$page|raw}
    </div>
</div>
<script>

</script>
</body>

{include file="common/_bottom"}